<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <style>
	body{
		line-height:1.8;
		font-size:14px;
		padding:15px;
		word-break:break-all;
	}
	</style>
  </head>
  <body>$str</body>
</html>